import request from '@/utils/request'


// 震害离散系数推荐值表查询
export function getAllDdRatio (query) {
    return request({
      url: '/rdFactor/getAllDdRatio',
      method: 'get',
      params: query
    })
  }

//震害离散系数推荐值表添加或修改
export function saveOrUpdateDdRatio (data) {
    return request({
      url: '/rdFactor/saveOrUpdateDdRatio',
      method: 'post',
      data: data
    })
  }

  //震害离散系数推荐值表删除
  export function deleteDdRatioById (query) {
    return request({
      url: '/rdFactor/deleteDdRatioById',
      method: 'get',
      params: query
    })
  }


//道路路基路面震害因子量化取值表查询
export function getAllRdFactor (query) {
  return request({
    url: '/rdFactor/getAllRdFactor',
    method: 'get',
    params: query
  })
}

//道路路基路面震害因子量化取值表添加或修改
export function saveOrUpdateRdFactor (data) {
  return request({
    url: '/rdFactor/saveOrUpdateRdFactor',
    method: 'post',
    data: data
  })
}

//道路路基路面震害因子量化取值表删除
export function deleteRdFactorById (query) {
  return request({
    url: '/rdFactor/deleteRdFactorById',
    method: 'get',
    params: query
  })
}
